/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package DataConverters.DataFormatters.formattersimpl;

import DataConverters.DataFormatters.AbstractDataFormatter;
import DataConverters.exceptions.DataConvertException;
import DataConverters.interfaces.IConvertable;
import DataConverters.interfaces.IConvertableSwingComponent;
import DataConverters.interfaces.dataformulaobject.intefaces.Cell;
import java.util.SortedSet;

/**
 *
 * @author Nobody
 */
public class JTableFormatter extends AbstractDataFormatter {

    public JTableFormatter(SortedSet<Cell> list) {
        super(list);
    }

    public JTableFormatter() {
    }


    @Override
    public void format(IConvertable source) throws DataConvertException  {
        IConvertableSwingComponent table = (IConvertableSwingComponent) source;
        table.fillWithData(list);
    }

}

